package util;

import constant.Constant;

import java.awt.*;
import java.util.HashMap;
import java.util.Map;

public class ImageUtil {

    public static Map<String, Image> images = new HashMap<>();

    static{
        //snake
        images.put("snake-head-right",GameUtil.getImage(Constant.IMG_PRE+"snake-head-right.png"));
        images.put("snake-body",GameUtil.getImage(Constant.IMG_PRE+"snake-body.png"));
        //food
        images.put("0",GameUtil.getImage(Constant.IMG_PRE+"apple.png"));
        images.put("1",GameUtil.getImage(Constant.IMG_PRE+"banana.png"));
        images.put("2",GameUtil.getImage(Constant.IMG_PRE+"cherry.png"));
        images.put("3",GameUtil.getImage(Constant.IMG_PRE+"grape.png"));
        images.put("4",GameUtil.getImage(Constant.IMG_PRE+"mango.png"));
        images.put("5",GameUtil.getImage(Constant.IMG_PRE+"pear.png"));
        images.put("6",GameUtil.getImage(Constant.IMG_PRE+"peach.png"));
        images.put("7",GameUtil.getImage(Constant.IMG_PRE+"strawberry.png"));
        images.put("8",GameUtil.getImage(Constant.IMG_PRE+"orange.png"));
        images.put("9",GameUtil.getImage(Constant.IMG_PRE+"watermelon.png"));
        //UI
        images.put("background",GameUtil.getImage(Constant.IMG_PRE+"background.png"));
    }
}
